<?php echo $html->script('jquery-1.4.2.min.js') ?>
<?php echo $html->script('date.js') ?>
<?php echo $html->script('jquery.datePicker.js') ?>
<?php echo $html->script('dibai.js') ?>
<?php echo $html->css('datePicker.css')?>
<div class="left">
	<div class="titles"><?php __('最新职位');?></div>
	<table class="post-list">
<tr><td>语言</td><td>职位名称</td><td>发布者</td><td>发布时间</td><td>截止日期</td></tr>
	<?php foreach ($jobs as $job):?>
	<tr>
		<td><?php echo $this->Html->link($job['Language']['name'],array('controller'=>'languages','action'=>'view',$job['Language']['id'])) ?></td>
		<td><?php echo $job['Job']['name']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($job['User']['username'], array('controller' => 'users', 'action' => 'view', $job['User']['id'])); ?>
		</td>
    		<td><?php echo $job['Job']['updated']; ?>&nbsp;</td>
		<td><?php echo $time->format($format="Y-m-d",$job['Job']['ends']); ?>&nbsp;</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="right">
    <div><?php echo $html->link('创建新职位', '/jobs/add',array('class'=>'btn')) ?>
	<div class="sub-titles"><?php __('搜索职位'); ?></div>
    <div class="search-box">
        <?php echo $form->create(null,array('type'=>'GET','url'=>'/jobs/search')) ?>
        <table >
			<tr>
				<td>职位语言</td>
				<td><?php echo $form->select('l_id', $languages, null, array('empty'=>'选择语言')) ?></td>
            <tr>
            <tr>
                <td>职位类型</td>
                <td><?php echo $form->select('jt_id', $employ_types, null,array('empty'=>'选择职位类别') ) ?></td>
            <tr>
                <td>职位类别</td>
<td><?php echo $form->select('et_id', $job_types, null,array('empty'=>'选择职位类型') ) ?></td></tr>
            </tr>
            <tr>
                <td>职位地区</td>
                <td>
                <select name="province_select" id="province_select" size="1">
                <option value=''>选择省份</option>
	        <?php foreach ($provinces as $province): ?>
	            <option value="<?php echo $province['Province']['id'] ?>"><?php echo $province['Province']['name'] ?></option>
	        <?php endforeach ?>
	        </select>
	        <select name="city_id" id="city_select" onchange="" size="1" disabled="disabled">
	            <option value="option1">选择城市</option>
	        </select>
                </td>
                
            </tr>
            <tr><td></td><td><?php echo $form->end('搜索') ?>
        </table>
    </div>
</div>